package com.schezhi.link.executor.dynamic;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author JiaLing.Fan
 * @version 1.0
 * @date 2023/10/18 11:44
 * @description DynamicDataSource
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicContextHolder.peek();
    }
}
